const Koa = require('koa');

const app = new Koa()
app.use((ctx, next) => {
    console.log(1);
    next();
    console.log(2)
})

app.use((ctx, next) => {
    console.log(3);
    next();
    console.log(4)
})

app.listen(4000)